<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript">
function submitTab(){
	if($("#rate").val() > 10){
		alertMsg.error("请正确填写折扣率");
	}else{
		$("#cdiscountTab").submit();
	}
}
</script>

<div class="pageContent">
	
	<form id="cdiscountTab" method="post" action="<%=basePath%>cdiscount_addCDiscount.action" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent" layoutH="58">
			<p>
				<label>客户类型名称：</label>
				<input type="text" name="clientClass.className" size="30" class="required" />								
			</p>
			<p>
				<label>客户类型编号：</label>				
					<input type="text" name="clientClass.classNumber" size="30" maxlength="20" value="${requestScope.clientNum}" readonly="readonly" />
					
			</p>
			<p>
				<label>折扣率：</label>
				<input id="rate" type="text" name="cdiscount.PCdiscountRate" size="30" class="required number" />
			</p>
			<p>
				<label>晋级标准公式：</label>				
				<input type="text" name="clientClass.classStandard" class="required" size="30"/>								
			</p>
			<p>
				<label>级别：</label>
				<select class="combox required" name="clientClass.classLevel">
						<option value="">请选择</option>
						<option value="1">一级</option>
						<option value="2">二级</option>
						<option value="3">三级</option>
						<option value="4">四级</option>
				</select>
			</p>
			<p>
				<label>是否含燃油：</label>
				<input type="radio" name="cdiscount.PCdiscountFuel" value="false" checked="checked" />不含
                <input type="radio" name="cdiscount.PCdiscountFuel" value="true" />包含
			</p>
			<p>
				<label>说明：</label>
				<textarea cols="30" rows="5" name="clientClass.classNote"></textarea>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="button" onclick="submitTab()">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

